package com.qs.home.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
* 身份证识别结果
* @Author ltzz
* @Date 2019/8/22
*/
public class IdCardFrontResultEntity implements Parcelable {
    private String direction;//方向
    private String wordsResultNumber;//结果词数量
    private String address;//地址
    private String idNumber;//身份证号
    private String birthday;//生日
    private String name;//名字
    private String gender;//性别
    private String ethnic;//名族
    private String signDate;//开始时间
    private String expiryDate;//结束时间
    private String issueAuthority;//发证机关

    protected IdCardFrontResultEntity(Parcel in) {
        direction = in.readString();
        wordsResultNumber = in.readString();
        address = in.readString();
        idNumber = in.readString();
        birthday = in.readString();
        name = in.readString();
        gender = in.readString();
        ethnic = in.readString();
        signDate = in.readString();
        expiryDate = in.readString();
        issueAuthority = in.readString();
    }

    public static final Creator<IdCardFrontResultEntity> CREATOR = new Creator<IdCardFrontResultEntity>() {
        @Override
        public IdCardFrontResultEntity createFromParcel(Parcel in) {
            return new IdCardFrontResultEntity(in);
        }

        @Override
        public IdCardFrontResultEntity[] newArray(int size) {
            return new IdCardFrontResultEntity[size];
        }
    };

    public String getDirection() {
        return direction;
    }

    public void setDirection(String direction) {
        this.direction = direction;
    }

    public String getWordsResultNumber() {
        return wordsResultNumber;
    }

    public void setWordsResultNumber(String wordsResultNumber) {
        this.wordsResultNumber = wordsResultNumber;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getIdNumber() {
        return idNumber;
    }

    public void setIdNumber(String idNumber) {
        this.idNumber = idNumber;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getEthnic() {
        return ethnic;
    }

    public void setEthnic(String ethnic) {
        this.ethnic = ethnic;
    }

    public String getSignDate() {
        return signDate;
    }

    public void setSignDate(String signDate) {
        this.signDate = signDate;
    }

    public String getExpiryDate() {
        return expiryDate;
    }

    public void setExpiryDate(String expiryDate) {
        this.expiryDate = expiryDate;
    }

    public String getIssueAuthority() {
        return issueAuthority;
    }

    public void setIssueAuthority(String issueAuthority) {
        this.issueAuthority = issueAuthority;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(direction);
        parcel.writeString(wordsResultNumber);
        parcel.writeString(address);
        parcel.writeString(idNumber);
        parcel.writeString(birthday);
        parcel.writeString(name);
        parcel.writeString(gender);
        parcel.writeString(ethnic);
        parcel.writeString(signDate);
        parcel.writeString(expiryDate);
        parcel.writeString(issueAuthority);
    }
}
